home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVWCOLOR.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  30 lines

  1. /*=======================================================*/
  2. /*  TVWCOLOR.C                                           */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12. #include "tvstream.h"
  13.  
  14. /*=======================================================*/
  15. /* TVwin_color   set physical attribute for logical attr */
  16. /*   Ralf Brown 4/15/88                                  */
  17. /*=======================================================*/
  18.  
  19. void pascal TVwin_color(OBJECT win,int logattr,int physattr)
  20. {
  21.    static BYTE stream[] = { S_WINDOW(4), 0xEC, 0x90, 0, 0 } ;
  22.  
  23. /*   stream[5] = 0x90 ; */ /*don't know what bit flags stand for yet */
  24.    stream[6] = ((logattr-1)<<4)|1 ;
  25.    stream[7] = physattr ;
  26.    TVwin_stream(win,stream) ;
  27. }
  28.  
  29. /* End of TVWCOLOR.C */
  30.